package com.cjh.service.impl;

import com.cjh.entity.Person;
import com.cjh.dao.PersonMapper;
import com.cjh.service.PersonService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cjh
 * @since 2021-03-24
 */
@Service
public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person> implements PersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public Person getByName(String name) {
        return personMapper.getByName(name);
    }
}
